import { createSSRApp } from "vue";
import pinia from "@/store/store";
import App from "./App.vue";
import "uno.css";
// @ts-ignore
import uView from "./uni_modules/vk-uview-ui";
import Share from "@/utils/share";
import { getImageUrl } from "@/utils/image";

export function createApp() {
  const app = createSSRApp(App);
  app.use(uView);
  app.use(pinia);
  app.mixin(Share);
  // 全局挂载
  app.config.globalProperties.$getImageUrl = getImageUrl;
  return {
    app,
  };
}
